google.load('visualization', '1.0', {'packages':['corechart']}); google.setOnLoadCallback(function(){ var data = new google.visualization.DataTable(); data.addColumn('string', '日'); data.addColumn('number', 'DL数'); data.addColumn('number', 'Googleセルラン'); data.addColumn('number', 'iOSセルラン'); data.addColumn({type:'string', role:'annotation'}); data.addColumn({type:'string', role:'annotationText'}); data.addRows([ ['2024-02-25',97556,null,null,null,null], ['2024-02-26',97575,null,null,null,null], ['2024-02-27',97582,null,null,null,null], ['2024-02-28',97596,null,null,null,null], ['2024-02-29',97596,null,null,null,null], ['2024-03-01',97596,null,null,null,null], ['2024-03-02',97628,null,null,null,null], ['2024-03-03',97628,null,null,null,null], ['2024-03-04',97639,null,null,null,null], ['2024-03-05',97652,null,null,null,null], ['2024-03-06',97662,null,null,null,null], ['2024-03-07',97676,null,null,null,null], ['2024-03-08',97682,null,null,null,null], ['2024-03-09',97690,null,null,null,null], ['2024-03-10',97694,null,null,null,null], ['2024-03-11',97704,null,null,null,null], ['2024-03-12',97722,null,null,null,null], ['2024-03-13',97730,null,null,null,null], ['2024-03-14',97733,null,null,null,null], ['2024-03-15',97733,null,null,null,null], ['2024-03-16',97755,null,null,null,null], ['2024-03-17',97767,null,null,null,null], ['2024-03-18',97792,null,null,null,null], ['2024-03-19',97796,null,null,null,null], ['2024-03-20',97807,null,null,null,null], ['2024-03-21',97813,null,null,null,null], ['2024-03-22',97813,null,null,null,null], ['2024-03-23',97823,null,null,null,null], ['2024-03-24',97832,null,null,null,null], ['2024-03-25',97845,null,null,null,null], ['2024-03-26',97859,null,null,null,null], ['2024-03-27',97868,null,null,null,null], ['2024-03-28',97878,null,null,null,null], ['2024-03-29',97896,null,null,null,null], ['2024-03-30',97896,null,null,null,null], ['2024-03-31',97896,null,null,null,null], ['2024-04-01',97960,null,null,null,null], ['2024-04-02',97965,null,null,null,null], ['2024-04-03',97965,null,null,null,null], ['2024-04-04',97989,null,null,null,null], ['2024-04-05',98002,null,null,null,null], ['2024-04-06',98009,null,null,null,null], ['2024-04-07',98024,null,null,null,null], ['2024-04-08',98035,null,null,null,null], ['2024-04-09',98044,null,null,null,null], ['2024-04-10',98054,null,null,null,null], ['2024-04-11',98054,null,null,null,null], ['2024-04-12',98069,null,null,null,null], ['2024-04-13',98085,null,null,null,null], ['2024-04-14',98107,null,null,null,null], ['2024-04-15',98119,null,null,null,null], ['2024-04-16',98127,null,null,null,null], ['2024-04-17',98135,null,null,null,null], ['2024-04-18',98142,null,null,null,null], ['2024-04-19',98150,null,null,null,null], ['2024-04-20',98163,null,null,null,null], ['2024-04-21',98166,null,null,null,null], ['2024-04-22',98190,null,null,null,null], ['2024-04-23',98197,null,null,null,null], ['2024-04-24',98197,null,null,null,null], ['2024-04-25',98204,null,null,null,null] ]); var options = { chartArea: {'width':'85%', 'height':'65%', 'left':60 }, 'pointSize': 3, legend: {position: 'top' }, vAxes:[ {direction:1}, {direction:-1,viewWindow:{min:0,max:0}} ], series: { 0:{ type: 'bars', color: 'skyblue', targetAxisIndex: 0, }, 1:{ type: 'line', color: 'seagreen', targetAxisIndex: 1, }, 2:{ type: 'line', color: 'red', targetAxisIndex: 1, }, }, tooltip: { trigger: 'both' }, focusTarget: 'category', colors:['#2980b9','#e74c3c'] }; var chart = new google.visualization.ComboChart(document.getElementById('graphField')); chart.draw(data, options); google.visualization.events.addListener(chart, 'click', function() { if(chart.getSelection()[0]){ chart.setSelection(null) } }); });